package com.sunstar.club.subject.domain.handler.subject;

import com.sunstar.club.subject.common.enums.SubjectInfoTypeEnum;
import com.sunstar.club.subject.domain.entity.SubjectInfoBo;
import com.sunstar.club.subject.domain.entity.SubjectOptionBo;

/**
 * @Author: Shylo Sun
 * @Project: track-club
 * @Date: 2024/2/24 11:04
 */
public interface SubjectTypeHandler {

    /**
     * 枚举身份的识别
     *
     * @return
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际题目的插入
     *
     * @param subjectInfoBo
     */
    void add(SubjectInfoBo subjectInfoBo);

    /**
     * 查询题目
     *
     * @param subjectId
     * @return
     */
    SubjectOptionBo query(int subjectId);
}
